part of 'alert.dart';

///密码重置
class AlertResetPwd extends StatelessWidget {
  final void Function()? onPressed;
  const AlertResetPwd({Key? key, this.onPressed}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return UnconstrainedBox(
        child: Material(
      color: Colors.transparent,
      child: Container(
        decoration: kAlertBoxDecoration,
        clipBehavior: Clip.hardEdge,
        height: 142,
        width: 300,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text(
              'Password Reset. The new default password is 666666',
              textAlign: TextAlign.center,
              style: TextStyle(color: Colors.white, fontSize: kAlertTitleFontSize),
            ),
            Padding(
              padding: const EdgeInsets.only(top: 10),
              child: TextButton(
                onPressed: onPressed,
                child: Text(
                  'OK',
                  style: TextStyle(color: Colors.black),
                ),
                style: TextButton.styleFrom(
                  backgroundColor: Colors.white,
                ),
              ),
            ),
          ],
        ),
      ),
    ));
  }
}
